import sys
sys.path.append("../../")
import Anonymouth
import FrameController
import os

class ProjectTester:
    
    def __init__(self,anon):
        os.chdir("../../")
        self.anon = anon
        self.controller = None
        
    def setController(self,controller):
        self.controller = controller
    
    def start(self):
        #Everything in here is run after Anonymouth is fully started
        #Also note: controller will be set by this point
        
        #self.anon.openProject(self.controller,os.path.abspath("users/Jon/Test Project/project.xml"))
        self.controller.newProject()
    
if __name__ == '__main__': 
    anon = Anonymouth.Anonymouth()
    tester = ProjectTester(anon)
    controller = FrameController.FrameController(anon,tester)
        